<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <script type="module">
        //模块化;
    async (params) => {
      //  import { title as webtitle, web, getweb} from './index.js';
       //别名 ---as
        console.log(webtitle);
        console.log(web)
        console.log(getweb())
    }
    import obj from './index.js';
        console.log(obj.title);
        console.log(obj.web)
        console.log(obj.getweb())
    </script>
</body>
</html>